<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Notice extends Model
{
    protected $table = 'zd_notices';

    //列表
    static function getlist($where){

        $model = self::whee($where)
            ->get()
            ->toArray();

        return $model;
    }

    //查询一条数据
    static function getfirst($where){

        $model = self::where($where)
            ->first();

        return $model;
    }
}
